/**
 * 说明：
 * 创建人：pluto
 * 创建时间：2018/8/3
 */
var MainCtrl = function ($scope, $sce) {
    // console.log('MainCtrl', productTypes);
    $scope.htmlTooltip = $sce.trustAsHtml('代码示例 <code>id:5</code>');
    $scope.menus = [
        {
            key: 'home',
            label: '系统消息',
            route: 'main.home',
            badge: '',
            icon: 'glyphicon-th-large'
        }, {
            key: 'auth',
            label: '认证管理',
            badge: '',
            icon: 'glyphicon-globe',
            children: [
                {
                    key: 'auth.factory',
                    label: '工厂方认证',
                    route: 'main.auth.factory',
                    badge: ''
                }, {
                    key: 'auth.business',
                    label: '订单方认证',
                    route: 'main.auth.business',
                    badge: ''
                }
            ]
        }, {
            key: 'customer',
            label: '用户管理',
            badge: '',
            icon: 'glyphicon-globe',
            children: [
                {
                    key: 'customer.factory',
                    label: '工厂方客户',
                    route: 'main.customer.factory',
                    badge: ''
                }, {
                    key: 'customer.business',
                    label: '订单方客户',
                    route: 'main.customer.business',
                    badge: ''
                }
            ]
        }, {
            key: 'compeval',
            label: '评论投诉管理',
            badge: '',
            icon: 'glyphicon-globe',
            children: [{
                key: 'complain',
                label: '投诉管理',
                route: 'main.compeval.complain',
                badge: '',
                icon: 'glyphicon-globe'
            },{
                key: 'shaidan',
                label: '晒单情况',
                route: 'main.compeval.shaidan',
                badge: '',
                icon: 'glyphicon-globe'
            },]
        }, {
            key: 'cash',
            label: '提现管理',
            route: 'main.cash',
            badge: '',
            icon: 'glyphicon-globe'
        }, {
            key: 'commission',
            label: '佣金明细',
            route: 'main.commission',
            badge: '',
            icon: 'glyphicon-globe'
        }, {
            key: 'system',
            label: '运营管理',
            badge: '',
            icon: 'glyphicon-cog',
            children: [
                {
                    key: 'system.setting',
                    label: '运营参数设置',
                    route: 'main.system.setting',
                    badge: ''
                }, {
                    key: 'system.product',
                    label: '产品分类管理',
                    route: 'main.system.product',
                    badge: ''
                }, {
                    key: 'system.protocol3',
                    label: '担保交易协议(工厂方)',
                    route: 'main.system.protocol',
                    param: {type: 3},
                    badge: ''
                }, {
                    key: 'system.protocol1',
                    label: '担保交易协议(订单方)',
                    route: 'main.system.protocol',
                    param: {type: 1},
                    badge: ''
                }, {
                    key: 'system.protocol2',
                    label: '付款方式协议',
                    route: 'main.system.protocol',
                    param: {type: 2},
                    badge: ''
                },
                {
                    key: 'system.ad',
                    label: '广告管理',
                    route: 'main.system.ad',
                    badge: '',
                    icon: 'glyphicon-th-large'
                },
                {
                    key: 'system.call',
                    label: '通话记录',
                    route: 'main.system.call',
                    badge: '',
                    icon: 'glyphicon-th-large'
                }
            ]
        }
    ];
};
angular.module('app.main.controller',[]).controller("MainCtrl", MainCtrl);